package com.intel.surface;


import lombok.Data;

@Data
public class SettingConfig {
    private static SettingConfig settingConfig;

    private String serverAddress;

    private String serverPort;

    public static SettingConfig getInstance() {
        if (settingConfig == null) {
            synchronized (SettingConfig.class) {
                if (settingConfig == null) {
                    settingConfig = new SettingConfig();
                }
            }
        }
        return settingConfig;
    }

    public static void setConfig(SettingConfig settingConfig_) {
        settingConfig = settingConfig_;
    }
}
